<template>
    <div>
        <label for="flavor">Please input:</label>
        <input v-on:input="changed" name="flavor">
    </div>
</template>

<script>
    import {CHANGE} from '../store/mutation-types'
    export default {
        name: "Editor",
        methods:{
            changed(event){
                this.$store.dispatch(CHANGE, event.target.value);
                // this.$store.commit('change',event.target.value)
            }
        }
    }
</script>

<style scoped>

</style>
